import java.util.Scanner;

public class String2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个人字符串");
        String str = sc.next();

        int scount=0;
        int bcount=0;
        int ncount=0;

        for (int i = 0; i < str.length(); i++) {
            char c = str.charAt(i);

            if (c>='a'&&c<='z'){
            scount++;}
            else if (c>='A'&&c<='Z'){
                bcount++;
            }else if (c>='0'&&c<='9'){
                ncount++;
            }
        }
        System.out.println("小写字母有"+scount+"个");
        System.out.println("大写字母有"+bcount+"个");
        System.out.println("数字有"+ncount+"个");
    }
}
